package com.leyou.trade;

import com.leyou.auth.annotation.EnableJwtVerification;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(scanBasePackages = {"com.leyou.trade","com.leyou.common.advice"})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.leyou.item.client","com.leyou.user.client","com.leyou.auth.client"})
@EnableJwtVerification
@MapperScan("com.leyou.trade.mapper")
public class LyTradeApplication {
    public static void main(String[] args) {
        SpringApplication.run(LyTradeApplication.class,args);
    }
}
